package com.ByteDance.service;

import com.ByteDance.model.po.VideoEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 * 视频表 服务类
 * </p>
 *
 * @author 朱哥
 * @since 2024-02-25
 */
public interface IVideoService extends IService<VideoEntity> {

    String uploadCover(String cover,String videoPath,String extension) throws IOException;

    void saveVideoMsg(int userId, String videoPath, String coverPath, String title);

    List<VideoEntity> searchVideosByUserId(Integer userId);

    //boolean isFavorite(Integer videoId, Integer userId);
}
